#define _CRT_SECURE_NO_WARNINGS 1
#include"Queue.h"

#include "Queue.h"

int main()
{
	Queue pq;
	QueueInit(&pq);
	QueuePush(&pq, 1);
	QueuePush(&pq, 2);
	QueuePush(&pq, 3);
	QueuePush(&pq, 4);
	printf("%d ", QueueFront(&pq));
	QueuePop(&pq);

	printf("%d ", QueueBack(&pq));


	printf("size:%d\n", QueueSize(&pq));

	while (!QueueEmpty(&pq))
	{
		int ret = QueueFront(&pq);
		int size = QueueSize(&pq);
		printf("%d %d\n", ret, size);
		QueuePop(&pq);
	}
	return 0;
}